﻿using System;
using Microsoft.EntityFrameworkCore.Migrations;

#nullable disable

namespace S.Transplantation.Infrastructure.Migrations
{
    public partial class 创建转种服务数据库 : Migration
    {
        protected override void Up(MigrationBuilder migrationBuilder)
        {
            migrationBuilder.CreateTable(
                name: "descendantTransfer",
                columns: table => new
                {
                    DescendantTransferId = table.Column<int>(type: "int", nullable: false)
                        .Annotation("SqlServer:Identity", "1, 1"),
                    EITag = table.Column<string>(type: "nvarchar(16)", maxLength: 16, nullable: false),
                    ShiftToHuts = table.Column<string>(type: "nvarchar(50)", maxLength: 50, nullable: false),
                    ShiftToBuild = table.Column<string>(type: "nvarchar(50)", maxLength: 50, nullable: false),
                    TurnOutHuts = table.Column<string>(type: "nvarchar(50)", maxLength: 50, nullable: false),
                    TurnOutBuild = table.Column<string>(type: "nvarchar(50)", maxLength: 50, nullable: false),
                    Sex = table.Column<bool>(type: "bit", nullable: false),
                    TransferDate = table.Column<DateTime>(type: "datetime2", nullable: false),
                    CreateBy = table.Column<string>(type: "nvarchar(50)", maxLength: 50, nullable: false),
                    CreateDate = table.Column<DateTime>(type: "datetime2", nullable: false),
                    UpdateBy = table.Column<string>(type: "nvarchar(50)", maxLength: 50, nullable: false),
                    UpdateDate = table.Column<DateTime>(type: "datetime2", nullable: false),
                    DocumentNumber = table.Column<string>(type: "nvarchar(50)", maxLength: 50, nullable: false),
                    SerialNumber = table.Column<string>(type: "nvarchar(50)", maxLength: 50, nullable: false)
                },
                constraints: table =>
                {
                    table.PrimaryKey("PK_descendantTransfer", x => x.DescendantTransferId);
                });
        }

        protected override void Down(MigrationBuilder migrationBuilder)
        {
            migrationBuilder.DropTable(
                name: "descendantTransfer");
        }
    }
}
